From 399874b1dee8161a195e416f41301f103603ecbf Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 6 Feb 2008 18:31:02 +0000 Subject: [PATCH] hvmloader: Remove dead function check_amd(). Signed-off-by: Keir Fraser --- tools/firmware/hvmloader/hvmloader.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tools/firmware/hvmloader/hvmloader.c b/tools/firmware/hvmloader/hvmloader.c index b59120dd03..243f7e9b46 100644 --- a/tools/firmware/hvmloader/hvmloader.c +++ b/tools/firmware/hvmloader/hvmloader.c @@ -107,20 +107,6 @@ cirrus_check(void) return inb(0x3C5) == 0x12; } -static int -check_amd(void) -{ - char id[12]; - - __asm__ __volatile__ ( - "cpuid" - : "=b" (*(int *)(&id[0])), - "=c" (*(int *)(&id[8])), - "=d" (*(int *)(&id[4])) - : "a" (0) ); - return __builtin_memcmp(id, "AuthenticAMD", 12) == 0; -} - static void wrmsr(uint32_t idx, uint64_t v) { -- 2.30.2